package com.imc.bo.impl;

import org.springframework.beans.factory.annotation.Autowired;

import com.imc.bo.PersonBo;
import com.imc.dao.PersonDao;
import com.imc.domain.Person;

public class PersonBoImpl implements PersonBo {

	@Autowired
	PersonDao personDao;

	public void setPersonDao(PersonDao personDao) {
		this.personDao = personDao;
	}

	public void delete(Person person) {
		personDao.delete(person);

	}

	public Person findByPersonId(long personId) {
		return personDao.findByPersonId(personId);
	}

	public void save(Person person) {
		personDao.save(person);

	}

	public void update(Person person) {
		personDao.update(person);

	}

}
